package com.xry.healthy.service.impl;


import com.xry.common.core.domain.R;
import com.xry.healthy.entity.QhMedicalData;

import com.xry.healthy.enums.HealthyTypeEnum;
import com.xry.healthy.mapper.ConsultMapper;
import com.xry.healthy.service.ConsultService;
import com.xry.healthy.vo.DoctorVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * @Author：ypc
 * @Date：2023/9/30
 * @Description：
 */
@Service
public class ConsultServiceImpl implements ConsultService {
    @Autowired
    private ConsultMapper consultMapper;

    @Override
    public R administrative() {
        List<QhMedicalData> list=consultMapper.administrative(HealthyTypeEnum.DISEASE.getValue());
        return R.ok(list);
    }

    @Override
    public R doctorInfo(Long id) {
        List<DoctorVo> list=consultMapper.doctorInfo(id);
        return R.ok(list);
    }
}
